package fristphase.day9_23.submarine;

import javax.swing.*;

public class Mine extends SeaObject{

    public Mine(int x, int y){
        super(20,20,x,y,3);
    }

    public void move(){
        setY(getY() - getSpeed());
    }

    public boolean isBound(){
        return getY() < 150-26-20;
    }

    public ImageIcon getImage(){
        return Images.mine;
    }
}
